package com.haiyou.dc.mq.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 抢单记录表
 *
 * @author Administrator
 * @date 2020-01-12 11:25:47
 */
@ApiModel(value = "抢单记录表")
@Data
@Accessors(chain = true)
@Table(name = "product_robbing_record")
public class ProductRobbingRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "id", name = "id")
    private Integer id;

    /**
     * 手机号
     */
    @Column(name = "mobile")
    @ApiModelProperty(value = "手机号", name = "mobile")
    private String mobile;

    /**
     * 产品Id
     */
    @Column(name = "product_id")
    @ApiModelProperty(value = "产品Id", name = "productId")
    private Integer productId;

    /**
     * 抢单时间
     */
    @Column(name = "robbing_time")
    @ApiModelProperty(value = "抢单时间", name = "robbingTime")
    private Date robbingTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间", name = "updateTime")
    private Date updateTime;

}
